<?php /* Smarty version Smarty-3.1.6, created on 2013-05-11 10:39:29
         compiled from "D:\Wamp\www\erp2.1\DzhPHP\FrameWork/Tpl\Role\edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:8070518daf615a4c43-27217996%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e994278e79ba75ec80f6d6057bcca5759e8d2264' => 
    array (
      0 => 'D:\\Wamp\\www\\erp2.1\\DzhPHP\\FrameWork/Tpl\\Role\\edit.tpl',
      1 => 1365400668,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '8070518daf615a4c43-27217996',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'rs' => 0,
    'lang' => 0,
    'super_admin' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_518daf617e3d1',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_518daf617e3d1')) {function content_518daf617e3d1($_smarty_tpl) {?><?php if (!is_callable('smarty_function_wz')) include 'D:\\Wamp\\www\\erp2.1\\DzhPHP\\FrameWork\\Extend\\Vendor\\Smarty\\plugins\\function.wz.php';
?><form method="POST" action="<?php echo U('Role/update');?>
" onsubmit="return false">
<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['id'];?>
">
<?php echo smarty_function_wz(array('action'=>"save,list,reset"),$_smarty_tpl);?>

<div class="add_box">
<table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>
         <tr><th colspan="8"><?php echo $_smarty_tpl->tpl_vars['lang']->value['role_basic'];?>
</th></tr>
          <tr align="left">
            <td width="10%"><?php echo $_smarty_tpl->tpl_vars['lang']->value['role_name'];?>
：</td>
            <td width="12%" class="t_left">
            	<input type="text" name="role_name" id="role_name" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['role_name'];?>
" class="spc_input"/>__*__
            </td>
            <?php if ($_smarty_tpl->tpl_vars['super_admin']->value){?>
             <td width="8%"><?php echo $_smarty_tpl->tpl_vars['lang']->value['admin'];?>
：</td>
            <td width="8%" class="t_left">
            	<input type="radio" name="is_admin" id="is_admin" value="1" <?php if ($_smarty_tpl->tpl_vars['rs']->value['is_admin']==1){?>checked<?php }?>><?php echo $_smarty_tpl->tpl_vars['lang']->value['yes'];?>

            	<input type="radio" name="is_admin" id="is_admin" value="0" <?php if ($_smarty_tpl->tpl_vars['rs']->value['is_admin']==0){?>checked<?php }?>><?php echo $_smarty_tpl->tpl_vars['lang']->value['no'];?>
__*__
            </td>
            <?php }?>           
      		<td width="10%"><?php echo $_smarty_tpl->tpl_vars['lang']->value['role_type'];?>
：</td>
      		<td width="20%" class="t_left"><select name="role_type" combobox>
            <option value="1" <?php if ($_smarty_tpl->tpl_vars['rs']->value['role_type']==1){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['lang']->value['full'];?>
</option>
            <option value="2" <?php if ($_smarty_tpl->tpl_vars['rs']->value['role_type']==2){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['lang']->value['domestic'];?>
</option>
            <option value="3" <?php if ($_smarty_tpl->tpl_vars['rs']->value['role_type']==3){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['lang']->value['abroad'];?>
</option>
            <option value="4" <?php if ($_smarty_tpl->tpl_vars['rs']->value['role_type']==4){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['lang']->value['factory'];?>
</option>
            <option value="5" <?php if ($_smarty_tpl->tpl_vars['rs']->value['role_type']==5){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['lang']->value['client'];?>
</option>
          </select></td>   
            <td width="9%"><?php echo $_smarty_tpl->tpl_vars['lang']->value['role_comments'];?>
：</td>
            <td width="10%" class="t_left">
            	<input type="text" name="comment"  id="comment" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['comment'];?>
"  class="spc_input"/>
            </td>
          </tr>    
          <?php if ($_smarty_tpl->tpl_vars['rs']->value['is_admin']!=1){?>
          <tr><th colspan="8" class="t_left"><?php echo $_smarty_tpl->tpl_vars['lang']->value['set_rights'];?>
</th></tr> 
          <tr><td colspan="8" align="left">
          <?php if (C('rights_level')==2){?>
          <?php echo $_smarty_tpl->getSubTemplate ("Role/rights_2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

          <?php }elseif(C('rights_level')==3){?>
          <?php echo $_smarty_tpl->getSubTemplate ("Role/rights_3.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

          <?php }?>
          <?php }?>
     </td></tr>                      
   </tbody>          
  </table>
</div>
</form><?php }} ?>